package com.fxu.framework.core.base;

import com.fxu.framework.core.enums.StatusEnum;
import com.fxu.framework.core.enums.StrStatus;

/**
 * 常量类
 * @author fangxu
 * @version 1.0.0
 */
public final class Constant {
	/** Token的请求报头 */
	public final static String HEADER_TOKEN = "Token";
	public final static String HEADER_AUTH = "Authorization";
	/** 冗余参数的请求报头 */
	public final static String HEADER_CODE = "Code";
	/** 冗余参数的请求报头 */
	public final static String HEADER_TYPE = "Type";
	/** 请求签名 */
	public final static String HEADER_SIGN = "Sign";
	/** 语言报头 */
	public final static String HEADER_LANG = "language";
	/** 查询链接 */
	public final static String QUERY_LINK = "$";
	/** apply 查询链接 */
	public final static String APPLY_LINK = "$Ap";
	/** and or 查询链接 */
	public final static String AND_OR_LINK = "$Or";
	/** 字段或 连接 */
	public final static String CLN_OR_LINK = "_";

	public final static String SHOW_TEXT = "showText";
	public final static String SHOW_FIELDS = "showFields";
	public final static String SHOW_FLAGS = "showFlags";
	public final static String SHOW_DEFAULT = "showDefault";
	public final static String IS_ID_ASC = "idAsc";
	public final static String NO_COUNT = "noCount";
	public final static String ORDER_BY = "orderBy";
	public final static String ID_NAME = "id";

	public final static String CLN_PRIORITY = "priority";
	public final static String CLN_STATUS = "status";
	public final static String CLN_VERSION = "version";
	public final static String CLN_CREATE_BY = "create_by";
	public final static String CLN_MODIFY_BY = "update_by";
	public final static String FLD_CREATE_BY = "createBy";
	public final static String FLD_MODIFY_BY = "updateBy";
	public final static String CLN_CREATE_TIME = "create_time";
	public final static String CLN_MODIFY_TIME = "update_time";
	public final static String FLD_CREATE_TIME = "createTime";
	public final static String FLD_MODIFY_TIME = "updateTime";
	public final static String FLD_ORDER_NO = "orderNo";
	public final static String CLN_ORDER_NO = "order_no";
	public final static String NEW_PARENT_ID = "pid";
	public final static String NEW_TENANT_ID = "tid";

	public final static String NEXT_ID = "nextId";
	public final static String PAGE_NUM = "pageNum";
	public final static String PAGE_SIZE = "pageSize";
	public final static String PARAMS = "params";

	public final static String DELETE_STATUS_STR = StrStatus.DELETE.code(); // 逻辑删除值
	public final static int DELETE_STATUS = StatusEnum.DELETE.code(); // 逻辑删除值
	public final static int DEFAULT_STATUS = StatusEnum.NORMAL.code(); // 默认可见
	public final static int DEFAULT_VERSION = 1; // 起始版本
	public final static int DEFAULT_PAGE_NUM = 1; // 默认第一页
	public final static int DEFAULT_PAGE_SIZE = 10; // 默认分页大小
}